package com.whty.ssm.db01.service.impl;

import com.whty.ssm.db01.dao.StudentDao;
import com.whty.ssm.db01.pojo.Student;
import com.whty.ssm.db01.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Copyright 2016-2022 tianyu education Corporation, All Rights Reserved
 * http://www.whty.com.cn/
 *
 * @author wangming
 * @version 1.0
 * @date 2020/9/1 19:44
 * @since 1.0
 */

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    public StudentDao studentDao;
    public Student getStudentById(String id ) {
        Student student = studentDao.queryStudentById(id);
        return student;
    }

    @Override
    public List<Student> getManyStudents(Student student) {
        return studentDao.queryManyStudents(student);
    }
}
